package com.infindo.iflower;

import android.util.Log;
import android.view.MotionEvent;
import android.view.GestureDetector.SimpleOnGestureListener;

public class MySimpleOnGestureListener extends SimpleOnGestureListener {
	@Override
	public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX,
			float velocityY) {
		Log.i("MyGesture", "onFling");   

		return super.onFling(e1, e2, velocityX, velocityY);
	}
	
	 public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {   
         Log.i("MyGesture", "onScroll");   
         if(distanceX > 0){
        	 PictureView.num = 1;
         }
         else{
        	 PictureView.num = -1;
         }
         return super.onScroll(e1, e2, distanceX, distanceY);   
     }   

}
